Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize Java Producer in blocking threadpool #1230

Merged

Conversation

kyri-petrou
Copy link
Contributor

As far as I understand, the initialization of the Java producer is side-effecting and blocking. It seems that while the Consumer initialization is wrapped in ZIO.blocking, the initialization of the Producer is not

@erikvanoosten
Copy link
Collaborator

Thanks @kyri-petrou . I am not sure if IO happens in the kafka producer constructor, but it for sure does a lot!

@erikvanoosten erikvanoosten merged commit f3757dd into zio:master Apr 24, 2024
14 checks passed
@kyri-petrou kyri-petrou deleted the initialize-kafka-producer-blocking branch April 24, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants